package com.luych.toolbox.common.event.base.service;

import com.luych.toolbox.common.feign.param.gateway.center.WebSocketTask;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

public class WebSocketTaskRemoteApplicationEvent extends RemoteApplicationEvent {

    private final WebSocketTask task;

    public WebSocketTaskRemoteApplicationEvent(String originService, String destinationService, WebSocketTask task) {
        super(new Object(), originService, destinationService);
        this.task = task;
    }

    public WebSocketTask getTask() {
        return task;
    }
}
